package com.ztgf.commodity.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 商品规格关系表VO
 *
 * author chenyu.wang
 * Date 2020-05-27 10:59:08
 */
@Data
public class CommoditySpecificationRelationVO implements Serializable {
    @ApiModelProperty(value = "主键")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "商品id")
    private Long commodityId ;
    @ApiModelProperty(value = "属性ids")
    private String attrIds ;
    @ApiModelProperty(value = "税除以100率")
    private Integer taxRate ;
    @ApiModelProperty(value = "单价;不填，询价")
    //@JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private Double price ;
    @ApiModelProperty(value = "批发价;不填，询价")
    //@JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private Double wholesalePrice ;
    @ApiModelProperty(value = "库存")
    private Integer inventoryNumber ;
    @ApiModelProperty(value = "尺寸;长*宽*高")
    private String commoditySize ;
    @ApiModelProperty(value = "尺寸单位;0毫米、1厘米、2米")
    private Integer commoditySizeUnit ;
    @ApiModelProperty(value = "商品单位")
    private Long commodityUnit ;
    @ApiModelProperty(value = "库存预警")
    private Integer inventoryNumberWarning ;
    @ApiModelProperty(value = "起批数量")
    private Integer batchNumber ;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "属性名称，以逗号隔开")
    private String atrrNames ;
}
